﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Honestysoft.Financing.WebUI.Module.Audit
{
    /// <summary>
    /// CheckBatch 的摘要说明
    /// </summary>
    public class CheckBatch : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string id = context.Request.Params["ID"];
            string type = context.Request.Params["Type"];
            int count = 0;
            if (type == "1")
            {
                count = new Honestysoft.Financing.BusinessLogic.Audit("").CheckCanLockBatch(id);
            }
            else
            {
                count = new Honestysoft.Financing.BusinessLogic.Audit("").CheckCanOutPutBatch(id);
            }
            context.Response.Write(count.ToString());
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}